home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / Hollow Text Stack.cpt / Hollow Text Stack / card_2960.txt < prev    next >
Text File  |  1989-04-19  |  6KB  |  248 lines

  1. -- card: 2960 from stack: in
  2. -- bmap block id: 2210
  3. -- flags: 0000
  4. -- background id: 2711
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on closeCard
  8.   set the scroll of card field "left column" to 0
  9.   put empty into card field "right column"
  10. end closeCard
  11.  
  12. on mouseUp
  13.   global theLine,theChoice
  14.   set the textFont of btn ">> Copy >>" to "Chicago Hollow"
  15.   set the textFont of btn "Remove" to "Chicago Hollow"
  16.   put empty into theLine
  17.   put empty into theChoice
  18. end mouseUp
  19.  
  20. function clickLine
  21. return ((the mouseV - item 2 of the rect of the target+the scroll of the target-4) div the textheight of the target) + 1
  22. end clickLine
  23.  
  24.  
  25.  
  26. -- part 1 (button)
  27. -- low flags: 00
  28. -- high flags: A002
  29. -- rect: left=299 top=29 right=51 bottom=377
  30. -- title width / last selected line: 0
  31. -- icon id / first selected line: 0 / 0
  32. -- text alignment: 1
  33. -- font id: 0
  34. -- text size: 12
  35. -- style flags: 0
  36. -- line height: 16
  37. -- part name: Beep 3
  38. ----- HyperTalk script -----
  39. on mouseUp
  40.   if the textFont of me is "Chicago hollow" then
  41.     exit mouseUp
  42.   else
  43.     beep 3
  44.     pass mouseUp
  45.   end if
  46. end mouseUp
  47.  
  48.  
  49.  
  50. -- part 2 (button)
  51. -- low flags: 00
  52. -- high flags: A000
  53. -- rect: left=249 top=34 right=47 bottom=296
  54. -- title width / last selected line: 0
  55. -- icon id / first selected line: 0 / 0
  56. -- text alignment: 1
  57. -- font id: 3
  58. -- text size: 9
  59. -- style flags: 0
  60. -- line height: 12
  61. -- part name: Enable >>
  62. ----- HyperTalk script -----
  63. on mouseUp
  64.   set the textFont of button 1 to "Chicago"
  65.   set the autohilite of button 1 to true
  66.   pass mouseUp
  67. end mouseUp
  68.  
  69.  
  70.  
  71. -- part 3 (button)
  72. -- low flags: 00
  73. -- high flags: A000
  74. -- rect: left=382 top=34 right=47 bottom=429
  75. -- title width / last selected line: 0
  76. -- icon id / first selected line: 0 / 0
  77. -- text alignment: 1
  78. -- font id: 3
  79. -- text size: 9
  80. -- style flags: 0
  81. -- line height: 12
  82. -- part name: << Disable
  83. ----- HyperTalk script -----
  84. on mouseUp
  85.   set the textFont of button 1 to "Chicago hollow"
  86.   set the autohilite of button 1 to false
  87.   pass mouseUp
  88. end mouseUp
  89.  
  90.  
  91.  
  92. -- part 4 (field)
  93. -- low flags: 01
  94. -- high flags: 0007
  95. -- rect: left=46 top=212 right=326 bottom=190
  96. -- title width / last selected line: 0
  97. -- icon id / first selected line: 0 / 0
  98. -- text alignment: 0
  99. -- font id: 0
  100. -- text size: 12
  101. -- style flags: 0
  102. -- line height: 16
  103. -- part name: Left Column
  104. ----- HyperTalk script -----
  105. on mouseUp
  106.   global theChoice,theLine
  107.   put clickLine() into theLine
  108.   set the textFont of btn id 6 to Chicago
  109.   select line theLine of me
  110.   put the selectedLine into theChoice
  111. end mouseUp
  112.  
  113.  
  114.  
  115. -- part 5 (field)
  116. -- low flags: 01
  117. -- high flags: 0007
  118. -- rect: left=321 top=212 right=326 bottom=465
  119. -- title width / last selected line: 0
  120. -- icon id / first selected line: 0 / 0
  121. -- text alignment: 0
  122. -- font id: 0
  123. -- text size: 12
  124. -- style flags: 0
  125. -- line height: 16
  126. -- part name: Right Column
  127. ----- HyperTalk script -----
  128. on mouseUp
  129.   global theChoice,theLine
  130.   put clickLine() into theLine
  131.   if line theLine of me is empty then
  132.     delete line theLine of me
  133.     exit mouseUp
  134.   end if
  135.   set the textFont of btn id 10 to "Chicago"
  136.   select line theLine of me
  137.   put the selectedLine into theChoice
  138. end mouseUp
  139.  
  140.  
  141.  
  142. -- part 6 (button)
  143. -- low flags: 00
  144. -- high flags: 8000
  145. -- rect: left=207 top=216 right=238 bottom=307
  146. -- title width / last selected line: 0
  147. -- icon id / first selected line: 0 / 0
  148. -- text alignment: 1
  149. -- font id: 226
  150. -- text size: 12
  151. -- style flags: 0
  152. -- line height: 16
  153. -- part name: >> Copy >>
  154. ----- HyperTalk script -----
  155. on mouseUp
  156.   global theChoice,theLine
  157.   if the textFont of the target is "Chicago Hollow" then exit mouseUp
  158.   if theChoice is empty then exit mouseUp
  159.   put the value of theChoice & return after card field "right column"
  160.   put empty into theChoice
  161.   set the textFont of the target to "Chicago Hollow"
  162. end mouseUp
  163.  
  164.  
  165.  
  166. -- part 8 (field)
  167. -- low flags: 00
  168. -- high flags: 2002
  169. -- rect: left=36 top=59 right=196 bottom=475
  170. -- title width / last selected line: 0
  171. -- icon id / first selected line: 0 / 0
  172. -- text alignment: 1
  173. -- font id: 3
  174. -- text size: 12
  175. -- style flags: 0
  176. -- line height: 16
  177. -- part name: 
  178.  
  179.  
  180. -- part 10 (button)
  181. -- low flags: 00
  182. -- high flags: 8000
  183. -- rect: left=207 top=245 right=267 bottom=307
  184. -- title width / last selected line: 0
  185. -- icon id / first selected line: 0 / 0
  186. -- text alignment: 1
  187. -- font id: 226
  188. -- text size: 12
  189. -- style flags: 0
  190. -- line height: 16
  191. -- part name: Remove
  192. ----- HyperTalk script -----
  193. on mouseUp
  194.   global theChoice,theLine
  195.   if the textFont of the target is "Chicago Hollow" then exit mouseUp
  196.   if theChoice is empty then exit mouseUp
  197.   delete line theLine of card field "right column"
  198.   put empty into theChoice
  199.   set the textFont of the target to "Chicago Hollow"
  200. end mouseUp
  201.  
  202.  
  203.  
  204. -- part 11 (button)
  205. -- low flags: 00
  206. -- high flags: 0000
  207. -- rect: left=441 top=31 right=51 bottom=466
  208. -- title width / last selected line: 0
  209. -- icon id / first selected line: 21700 / 21700
  210. -- text alignment: 1
  211. -- font id: 0
  212. -- text size: 12
  213. -- style flags: 0
  214. -- line height: 16
  215. -- part name: Home
  216. ----- HyperTalk script -----
  217. on mouseUp
  218.   visual barn door close
  219.   go home
  220. end mouseUp
  221.  
  222.  
  223.  
  224. -- part contents for card part 4
  225. ----- text -----
  226. Dickinson
  227. Donne
  228. Eliot
  229. Emerson
  230. Frost
  231. Herbert
  232. Hopkins
  233. Millay
  234. Milton
  235. Pound
  236. Rexroth
  237. Shakespeare
  238. Thomas
  239. Watts
  240. Whitman
  241. Yeats
  242.  
  243.  
  244. -- part contents for card part 8
  245. ----- text -----
  246.  This stack contains a font called ‚ÄúChicago Hollow‚Äù which is the font of disabled buttons and menu items in the standard Macintosh interface. You can install it in any stack with the Font/DA Mover. Chicago Hollow may be used to make HyperCard buttons act more like standard Macintosh buttons; see the scripts of the buttons on this card (and the script of the card itself) for examples.
  247. 5 September 1988
  248. Bob O‚ÄôHara, 26 Oxford Street, Cambridge, Mass. 02138